package com.zlj.accountant.core;

import java.util.List;

import android.content.Context;

public interface HandlerManager {
	
	public <T,P> List<T> getList(Class<T> t,P key)throws Exception;
	
	public <T> List<T> getList(Class<T> t)throws Exception;
	
	public <T,P> T find(Class<T> t,P key)throws Exception;
	
	public <T> T find(Class<T> t)throws Exception;
	
	public <TTask extends SimpleTask> void handle(TTask task)throws Exception;
	
	public <TTask extends Task<TMethod>,TMethod extends Enum<TMethod>> void handle(TTask task,TMethod e)throws Exception;
	
	public Context getContext();
}
